﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Caltech.Models
{
    public class CustomerModel : BaseModel
    {
        [Required]
        public string Name { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Country { get; set; }
        public string Note { get; set; }
        public string Tel { get; set; }
        public string Fax { get; set; }
        public string Mobile { get; set; }
        public string ContactPersonName { get; set; }
        [EmailAddress]
        public string Email { get; set; }

        public string LoginUsername { get; set; }
        public string LoginPassword { get; set; }
        public bool IsExistUsername { get; set; }

        public DateTime? NextDueDate { get; set; }
        public string SalesmanId { get; set; }
        public string SalesmanName { get; set; }
    }

    public class CustomerCompactModel
    {
        public string Name { get; set; }
        public int Id { get; set; }
    }
}